package cn.wolfcode.luowowo.member.util;

//import cn.wolfcode.luowowo.common.exception.LogicException;

import cn.wolfcode.luowowo.common.exception.logicException;

public class AssertUtil {
    //trim方法删除左右两边的空格
   public static void hasLength(String value, String msg) {
        if (value == null || "".equals(value.trim())){
            throw new logicException(msg);
        }
    }

    public static void isEquals(String value, String value2, String msg) {
        if (value == null || value2 == null){
            throw new logicException("密码不能为空");
        }
        if (!value.equals(value2)){
            throw new logicException(msg);
        }
    }
}
